import service from '@/utils/request'

// @Tags NonpreorderGroupMaterial
// @Summary 创建无需预定物料群组编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.NonpreorderGroupMaterial true "创建无需预定物料群组编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /nonpreorderGroupMaterial/createNonpreorderGroupMaterial [post]
export const createNonpreorderGroupMaterial = (data) => {
  return service({
    url: '/nonpreorderGroupMaterial/createNonpreorderGroupMaterial',
    method: 'post',
    data
  })
}

// @Tags NonpreorderGroupMaterial
// @Summary 删除无需预定物料群组编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.NonpreorderGroupMaterial true "删除无需预定物料群组编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /nonpreorderGroupMaterial/deleteNonpreorderGroupMaterial [delete]
export const deleteNonpreorderGroupMaterial = (params) => {
  return service({
    url: '/nonpreorderGroupMaterial/deleteNonpreorderGroupMaterial',
    method: 'delete',
    params
  })
}

// @Tags NonpreorderGroupMaterial
// @Summary 批量删除无需预定物料群组编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除无需预定物料群组编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /nonpreorderGroupMaterial/deleteNonpreorderGroupMaterial [delete]
export const deleteNonpreorderGroupMaterialByIds = (params) => {
  return service({
    url: '/nonpreorderGroupMaterial/deleteNonpreorderGroupMaterialByIds',
    method: 'delete',
    params
  })
}

// @Tags NonpreorderGroupMaterial
// @Summary 更新无需预定物料群组编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.NonpreorderGroupMaterial true "更新无需预定物料群组编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /nonpreorderGroupMaterial/updateNonpreorderGroupMaterial [put]
export const updateNonpreorderGroupMaterial = (data) => {
  return service({
    url: '/nonpreorderGroupMaterial/updateNonpreorderGroupMaterial',
    method: 'put',
    data
  })
}

// @Tags NonpreorderGroupMaterial
// @Summary 用id查询无需预定物料群组编号
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.NonpreorderGroupMaterial true "用id查询无需预定物料群组编号"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /nonpreorderGroupMaterial/findNonpreorderGroupMaterial [get]
export const findNonpreorderGroupMaterial = (params) => {
  return service({
    url: '/nonpreorderGroupMaterial/findNonpreorderGroupMaterial',
    method: 'get',
    params
  })
}

// @Tags NonpreorderGroupMaterial
// @Summary 分页获取无需预定物料群组编号列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取无需预定物料群组编号列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /nonpreorderGroupMaterial/getNonpreorderGroupMaterialList [get]
export const getNonpreorderGroupMaterialList = (params) => {
  return service({
    url: '/nonpreorderGroupMaterial/getNonpreorderGroupMaterialList',
    method: 'get',
    params
  })
}
